<template>
<!-- 选中项 -->
  <div class="select_number">
    <span class="number_span"
      >已选择<b>{{ selectNumber }}</b
      >项</span
    >
    <span class="clear_span" @click="clearSelect">清空</span>
  </div>
</template>
<script>
export default {
  name: 'selectNum',
  props: {
    selectNumber: {
      type: Number,
      default: 0
    }
  },
  methods: {
    clearSelect() {
      this.$emit('clearSelect')
    }
  }
}
</script>
<style lang="less" scoped>
.select_number {
  width: 100%;
  height: 36px;
  padding-left: 20px;
  margin-bottom: 10px;
  box-sizing: border-box;
  background: rgba(57, 72, 103, 0.22);
  line-height: 36px;
  .number_span {
    color: #ffffff;
    margin-right: 30px;
    b {
      color: #394867;
      margin: 0 15px;
    }
  }
  .clear_span {
    cursor: pointer;
    color: #394867;
  }
}
</style>
